﻿using System.Windows.Automation;

namespace QuickUIT.Controls
{
    /// <summary>
    /// Represents a menu control. 
    /// </summary>
    public class UIMenu : UIBaseControl
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="UIMenu"/> class. 
        /// </summary>
        public UIMenu() : base(ControlType.Menu)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="UIMenu"/> class.
        /// </summary>
        /// <param name="parent">The parent of this control.</param>
        public UIMenu(UIBaseControl parent) : base(parent, ControlType.Menu)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="UIMenu"/> class.
        /// </summary>
        /// <param name="locator">The locator used to find the specific control.</param>
        public UIMenu(string locator) : base(null, ControlType.Menu, locator)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="UIMenu"/> class.
        /// </summary>
        /// <param name="parent">The parent of this control.</param>
        /// <param name="locator">The locator used to find the specific control.</param>
        public UIMenu(UIBaseControl parent, string locator) : base(parent, ControlType.Menu, locator)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="UIMenu"/> class.
        /// </summary>
        /// <param name="control">The underlying <see cref="AutomationElement"/> of the control.</param>
        public UIMenu(AutomationElement control) : base(control, ControlType.Menu)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="UIMenu"/> class.
        /// </summary>
        /// <param name="parent">The parent of the control</param>
        /// <param name="control">The underlying <see cref="AutomationElement"/> of the control.</param>
        public UIMenu(UIBaseControl parent, AutomationElement control) : base(parent, control, ControlType.Menu)
        {
        }
    }
}
